package com.itheima.demo;

public class Box <E>{//定义一个泛型类
    private E obj;

    public Box() {
    }

    public Box(E obj) {
        this.obj = obj;
    }

    public E getObj() {
        return obj;
    }

    public void setObj(E obj) {
        this.obj = obj;
    }
}
